package com.frinder.seata.account.service;

import com.frinder.seata.data.base.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName CallOrderService
 * @Description 远程调用订单服务
 * @Author frinder
 * @Date 2020/8/18 11:06
 * @Verion 1.0
 */
@FeignClient(value = "order-server", fallbackFactory = CallOrderFallbackFactory.class)
public interface CallOrderService {

    /**
     * 订单完成
     *
     * @param orderId
     * @return
     */
    @RequestMapping(value = "/biz/order/completed", method = RequestMethod.POST)
    Result completed(@RequestParam long orderId);

}
